from models import *
from django.shortcuts import render_to_response

def blogPage(request):
	posts=Post.objects.all().order_by("-created")
	sites = Sites.objects.all()
	categories = Category.objects.all()
	aboutme = AboutMe.objects.all()
	closeblog= CloseBlog.objects.all()
	return render_to_response("blog.html", locals())
	
def aboutme(request):
	aboutme = AboutMe.objects.all()
	sites = Sites.objects.all()
	categories = Category.objects.all()
	return render_to_response("aboutme.html", locals())